package com.jun.seckill_by_jun.exception;

import com.jun.seckill_by_jun.result.CodeMsg;

public class GlobalException extends RuntimeException{
    private static final long servialVersionUID = 1L;
    private CodeMsg codeMsg;

    public GlobalException(CodeMsg codeMsg) {
        super(codeMsg.toString());
        this.codeMsg = codeMsg;
    }

    public CodeMsg getCodeMsg(){
        return codeMsg;
    }
}
